package com.elephant.dao;

import com.elephant.pojo.Department;
import com.elephant.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

@Repository
@Mapper
public interface DepartmentDao {


    //获取所有部门
    public List<Department> getDepartments();
    //通过id获得部门
    public Department getDepartmentsById(int id);
}
